<template>
	<view>
		<view class="withdrawal-declare">
			<view class="add-address-details">
				<view class="add-address-title">可提现额</view>
				<view class="add-address-textarea">
					<input style="color: #FF391F;" type="text" value="￥1.00" />
				</view>
			</view>
			<view class="add-address-details">
				<view class="add-address-title">认证姓名</view>
				<view class="add-address-textarea">
					<input type="text" value="" placeholder="非常重要，输入正确姓名"/>
				</view>
			</view>
			<view class="add-address-details" style="border: none;">
				<view class="add-address-title">提现金额</view>
				<view class="add-address-textarea">
					<input type="text" value="" placeholder="金额需要2-5000之间"/>
				</view>
			</view>
			<view class="deposit-btn" @click="depositClick">
				提现
			</view>
		</view>
		<view class="deposit-explain">
			<view class="explain-title">
				<view class=""></view>
				<view class="">
					提现说明
				</view>
			</view>
			<view class="deposit-explain-content">
				<view class="">
					1.单笔提现金额最低2元，最高5000元，每日累计不可超过5000元。
				</view>
				<view class="">
					2.提现到微信零钱，需要提供与当前微信好实名认证一致的姓名，否则无法到账。
				</view>
				<view class="">
					3.提现一般1-3个工作日到账，请留意微信服务通知。如提现3天还没有到账，请联系“ 客服人员”。
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				store_id:''
			}
		},
		onLoad(options) {
			let store_id = parseInt(options.store_id,10);
			console.log('进入了onload 获取url的store_id',store_id)
			if(!store_id > 0){
				store_id = uni.getStorageSync('store_id')?parseInt(uni.getStorageSync('store_id'),10):0
			}else{
				uni.setStorageSync('store_id', store_id)
			}
			
			this.store_id = parseInt(store_id,10)
			this.$store.commit('updateStoreId',store_id)
		}
	}
</script>

<style>
	page{
		background: #F3F3F4;
	}
	.withdrawal-declare{
		width: 100%;
		padding-left: 30upx;
		padding-bottom: 30upx;
		box-sizing: border-box;
		background: #FFFFFF;
	}
	.add-address-details{
		width: 100%;
		height: 100upx;
		padding: 32upx 30upx 28upx 0;
		box-sizing: border-box;
		display: flex;
		border-bottom: 1upx solid #DEDEDE;
	}
	.add-address-title{
		font-size: 28upx;
		color: #666666;
	}
	.add-address-textarea{
		position: relative;
		flex-grow: 1;
		margin-left: 40upx;
	}
	.add-address-details>view>input{
		font-size: 28upx;
		flex-grow: 1;
	}
	.deposit-btn{
		width: 638upx;
		height: 88upx;
		line-height: 88upx;
		text-align: center;
		color: #FFFFFF;
		font-size: 32upx;
		margin: 0 auto;
		margin-top: 50upx;
		border-radius: 44upx;
		background: linear-gradient(to right,#FE9543,#FF664F);
		box-shadow: 0 8upx 16upx 0 rgba(166, 13, 0, 0.23);
	}
	.deposit-explain{
		width: 100%;
		margin-top: 20upx;
		background: #FFFFFF;
		padding: 0 30upx;
		padding-bottom: 30upx;
		box-sizing: border-box;
	}
	.explain-title{
		display: flex;
		padding: 30upx 0 22upx;
		box-sizing: border-box;
		border-bottom: 1upx solid #DEDEDE;
	}
	.explain-title>view:first-child{
		width: 8upx;
		height: 32upx;
		background: #FF8B46;
		vertical-align: middle;
		margin-top: 6upx;
	}
	.explain-title>view:last-child{
		color: #333333;
		font-size: 34upx;
		margin-left: 10upx;
	}
	.deposit-explain-content>view{
		margin-top: 30upx;
		color: #666666;
		font-size: 28upx;
	}
</style>
